package com.muyu.remote;

import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.danmo.domain.DanmoInformationBasic;
import com.muyu.remote.factory.DanmoBasicFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * DanmoBasicService
 *
 * @author LeYang
 * on 2025/4/4
 */
@FeignClient(
        contextId = "DanmoBasicFactory",
        value = ServiceNameConstants.ADDRESS_SERVICE,
        fallbackFactory = DanmoBasicFactory.class,
        path = "/danmoInformationBasic"
)
public interface DanmoBasicService {

    @GetMapping("/getInfoUser")
    public DanmoInformationBasic getInfoUser(@RequestParam("userid") Long userid);
    /**
     * 2
     * @param longs
     * @return
     */
    @PostMapping("/selectUserList")
    public List<DanmoInformationBasic> selectUserList(@RequestBody List<Long> longs);

}
